reftest: Plug memleak
authorBenjamin Otte <otte@redhat.com>
Fri, 6 Mar 2020 04:52:44 +0000 (05:52 +0100)
committerBenjamin Otte <otte@redhat.com>
Fri, 6 Mar 2020 04:52:44 +0000 (05:52 +0100)
testsuite/reftests/gtk-reftest.c

index f54244db3eec2d44fd1bad9dd3f1ef012f9171ea..9ddd0dab1e60fe24ddbb6cf4791380f6766029cc 100644 (file)
@@ -172,7 +172,7 @@ get_test_file (const char *test_file,
 
   get_components_of_test_file (test_file, &dir, &base);
 
-  file = g_string_new (dir);
+  g_string_append (file, dir);
   g_string_append (file, G_DIR_SEPARATOR_S);
   g_string_append (file, base);
   g_string_append (file, extension);